Skip to content

fix(codearts): cool down accounts when credits are exhausted - #665

Merged
caigee-cmd merged 1 commit into
mainfrom
fix/huaweicloud-codarts-account-cooldown
Dec 5, 2026
Merged

caigee-cmd merged 1 commit into
mainfrom
fix/huaweicloud-codarts-account-cooldown

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Huawei Cloud CodeArts TM.00001050(积分已耗尽)was classified as invalid_request when the upstream returned HTTP 400, so the account did not enter cooldown and stayed in rotation.
  • The same SSE frame was classified as unavailable. Both forms now map to quota. The executor cools that account until local midnight and fails over. Rate-limit code TM.00001041 is unchanged.

Test plan

  • go test -count=1 -run 'TestClassify|TestPreflightSSE|TestImporterAndClassifier' ./internal/providers/codearts/
  • go test ./...
  • go vet ./...
  • cd worker && npm test
  • cd frontend && npm run build && npm run lint
  • Added changelog/unreleased/codearts-credit-exhausted-cooldown.md
  • No tokens, auth blobs, raw captures, or host details in the diff

TM.00001050 (积分已耗尽) was classified as invalid_request on HTTP 400,
so the exhausted account stayed in rotation. Treat that code and the
exhausted-credit wording as quota so the executor cools the account
until local midnight and fails over.
@caigee-cmd
caigee-cmd merged commit cb6d0d1 into main Dec 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant